/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.tintuna.sdigger.web.action.statement;

import com.tintuna.sdigger.web.data.statement.StatementMain;
import com.tintuna.sdigger.web.data.statement.StatementHeader;
import com.tintuna.sdigger.web.data.statement.StatementRow;
import java.util.List;
import net.sourceforge.stripes.action.ActionBean;
import net.sourceforge.stripes.action.ActionBeanContext;
import net.sourceforge.stripes.action.DefaultHandler;
import net.sourceforge.stripes.action.ForwardResolution;
import net.sourceforge.stripes.action.Resolution;

/**
 *
 * @author bsmith
 */
public class StatementActionBean implements ActionBean {

    private ActionBeanContext context;
    private static final String VIEW = "/WEB-INF/jsp/statement/statement.jsp";
    
    private StatementMain statementMain = new StatementMain();
    private Merchants merchants = 
    /* ************************ DATA ************************** */
    public List<String> getHeader() {
       return statementMain.getStatementHeader();
    }
    
    public List<List<String>> getRows() {
        return statementMain.getStatementRows();
    }
    
    /* ************************ HANDLERS ************************** */
    @DefaultHandler
    public Resolution view() {
        return new ForwardResolution(VIEW);
    }

    public ActionBeanContext getContext() {
        return context;
    }

    public void setContext(ActionBeanContext context) {
        this.context = context;
    }

}
